package com.jandan.ui.client.service;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.jandan.ui.model.Word;
import com.jandan.ui.model.WordLib;


public interface WordLibService extends RemoteService {
	public static final String SERVICE_URI = "wordlib.rpc";
	public static class Util {
		public static WordLibServiceAsync getInstance() {
			WordLibServiceAsync instance = (WordLibServiceAsync) GWT
					.create(WordLibService.class);
			ServiceDefTarget target = (ServiceDefTarget) instance;
			target.setServiceEntryPoint(GWT.getModuleBaseURL() + SERVICE_URI);
			return instance;
		}
	}
	
	public List<WordLib> getWordLibList();
	public Word getWordByWordID(long wordID);
	public void addStrangeWord(Word word);
	public Word getWordByWordEn(String wordEn);
}
